The parameter err is not used and could be removed.
This check looks for parameters in functions that are not used in the function
body and are not followed by other parameters which are used inside the function.
Loading history...
23
let exitCode = 0;
24
if (signal === 'SIGTERM' || signal === 'SIGQUIT') {
Use of process.exit() is discouraged as it will potentially stop the complete node.js application. Consider quitting gracefully instead by throwing an Error.
Loading history...
48
};
49
50
return server.stop()
51
.then(_exit, _exit);
52
};
53
54
taskLogger.starting();
55
56
return server.start()
57
.then(() => taskLogger.started())
58
.catch(error => {
59
const newError = new NestedError(`Exit ${appName} after an error at initialisation`, error);
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.